package Day11Zuoye;

public class TV implements Function {
    private String color;
    private int price;
    private int size;

public void show(){
    System.out.println(color+"颜色的电视"+",价格是:"+price+",尺寸是:"+size+"寸");
}

    public TV(String color, int price, int size) {
        this.color = color;
        this.price = price;
        this.size = size;
    }

    public TV() {
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public void start() {
        System.out.println("开机");
    }

    @Override
    public void close() {
        System.out.println("关机");
    }

    @Override
    public void change() {
        System.out.println("换台");
    }
}
